#include "widgetshowform.h"
#include "ui_widgetshowform.h"

WidgetShowForm::WidgetShowForm(QWidget *parent)
    : QWidget(parent)
    , ui(new Ui::WidgetShowForm)
{
    ui->setupUi(this);

    /* 添加地面气象站 */
    QVBoxLayout *layout_mete = new QVBoxLayout;
    layout_mete->addWidget(&m_mete);
    ui->widget_mete_station->setLayout(layout_mete);

    /* 添加大气能见度仪 */
    QVBoxLayout *layout_vis = new QVBoxLayout;
    layout_vis->addWidget(&m_vis);
    ui->widget_visibility->setLayout(layout_vis);

    /* 添加米散射激光雷达 */
    QVBoxLayout *layout_radar = new QVBoxLayout;
    layout_radar->addWidget(&m_radar);
    ui->widget_radar->setLayout(layout_radar);

    /* 添加太阳辐射计 */
    QVBoxLayout *layout_radio = new QVBoxLayout;
    layout_radio->addWidget(&m_radio);
    ui->widget_radiometer->setLayout(layout_radio);
}

WidgetShowForm::~WidgetShowForm()
{
    delete ui;
}
